
<html>

<head>
    <include file="public@head" title="栏目编辑"/>
</head>

<body class="layui-layout-admin">
<include file="public@header"/>
<include file="public@side"/>
<div class="layui-body">
    <div class="layui-breadcrumb" lay-filter="breadcrumb">
        <a href="{:url('tdadmin/index/index')}">主页</a>
        <a>内容管理</a>
        <a href="{:url('index')}">问题管理</a>
        <a><cite>编辑问题</cite></a>
    </div>
    <div class="layui-fluid">
        <div class="layui-card">
            <div class="layui-card-header">
                编辑问题
            </div>
            <div class="layui-card-body layui-row">
                <form method="post" class="layui-form layui-col-md6" action="{:url('edit')}">
                    <input type="hidden" id="id" class="layui-input" name="id"
                           value="{$question.id}">
                    <div class="layui-form-item">
                        <label class="layui-form-label">问题<span class="form-required">*</span></label>
                        <div class="layui-input-block">
                            <input type="text" id="name" class="layui-input" name="question"
                                   value="{$question.question}"
                                   placeholder="请输入问题">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">回答<span class="form-required">*</span></label>
                        <div class="layui-input-block">
                            <input type="text" id="answer" class="layui-input" name="answer" value="{$question.answer}"
                                   placeholder="请输入问题">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button type="submit" class="layui-btn" lay-submit lay-filter="general">修改</button>
                            <a class="layui-btn layui-btn-primary" href="javascript:history.back(-1);">返回</a>
                        </div>
                    </div>
                </form>


            </div>
        </div>
    </div>
</div>
<include file="public@scripts"/>
<script>

</script>
</body>

</html>
